package com.kxy.auth.web.controller;

import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {
	 @RequestMapping("/test")  
	public String test(HttpSession httpSession) {
		 System.out.println(httpSession.getId());
		 httpSession.setAttribute("hello", "auth");
		return "Success";
	}
}
